#pragma once

using namespace System;
using namespace System::ComponentModel;
using namespace System::Collections;
using namespace System::Windows::Forms;
using namespace System::Data;
using namespace System::Drawing;


namespace HistoryAddIn {

	/// <summary>
	/// Summary for HistoryPrompt
	///
	/// WARNING: If you change the name of this class, you will need to change the
	///          'Resource File Name' property for the managed resource compiler tool
	///          associated with all .resx files this class depends on.  Otherwise,
	///          the designers will not be able to interact properly with localized
	///          resources associated with this form.
	/// </summary>
	public ref class HistoryPrompt : public System::Windows::Forms::Form
	{
	public:
		HistoryPrompt(void)
		{
			InitializeComponent();
		}

	protected:
		/// <summary>
		/// Clean up any resources being used.
		/// </summary>
		~HistoryPrompt()
		{
			if (components)
			{
				delete components;
			}
		}

    protected: 

    private: System::Windows::Forms::Label^  label1;
    private: System::Windows::Forms::Button^  buttonOK;
    private: System::Windows::Forms::Button^  buttonCancel;
    public: System::Windows::Forms::ListView^  listView1;
    private: 

    private: System::Windows::Forms::ColumnHeader^  columnHeader1;
    private: System::Windows::Forms::ColumnHeader^  columnHeader2;
    private: System::Windows::Forms::Label^  label2;
    protected: 

	private:
		/// <summary>
		/// Required designer variable.
		/// </summary>
		System::ComponentModel::Container ^components;

#pragma region Windows Form Designer generated code
		/// <summary>
		/// Required method for Designer support - do not modify
		/// the contents of this method with the code editor.
		/// </summary>
		void InitializeComponent(void)
		{
            System::ComponentModel::ComponentResourceManager^  resources = (gcnew System::ComponentModel::ComponentResourceManager(HistoryPrompt::typeid));
            this->label1 = (gcnew System::Windows::Forms::Label());
            this->buttonOK = (gcnew System::Windows::Forms::Button());
            this->buttonCancel = (gcnew System::Windows::Forms::Button());
            this->listView1 = (gcnew System::Windows::Forms::ListView());
            this->columnHeader1 = (gcnew System::Windows::Forms::ColumnHeader());
            this->columnHeader2 = (gcnew System::Windows::Forms::ColumnHeader());
            this->label2 = (gcnew System::Windows::Forms::Label());
            this->SuspendLayout();
            // 
            // label1
            // 
            this->label1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left) 
                | System::Windows::Forms::AnchorStyles::Right));
            this->label1->Location = System::Drawing::Point(12, 18);
            this->label1->Name = L"label1";
            this->label1->Size = System::Drawing::Size(460, 76);
            this->label1->TabIndex = 1;
            this->label1->Text = resources->GetString(L"label1.Text");
            // 
            // buttonOK
            // 
            this->buttonOK->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Right));
            this->buttonOK->DialogResult = System::Windows::Forms::DialogResult::OK;
            this->buttonOK->Enabled = false;
            this->buttonOK->Location = System::Drawing::Point(316, 249);
            this->buttonOK->Name = L"buttonOK";
            this->buttonOK->Size = System::Drawing::Size(75, 23);
            this->buttonOK->TabIndex = 2;
            this->buttonOK->Text = L"OK";
            this->buttonOK->UseVisualStyleBackColor = true;
            // 
            // buttonCancel
            // 
            this->buttonCancel->Anchor = static_cast<System::Windows::Forms::AnchorStyles>((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Right));
            this->buttonCancel->DialogResult = System::Windows::Forms::DialogResult::Cancel;
            this->buttonCancel->Location = System::Drawing::Point(397, 249);
            this->buttonCancel->Name = L"buttonCancel";
            this->buttonCancel->Size = System::Drawing::Size(75, 23);
            this->buttonCancel->TabIndex = 3;
            this->buttonCancel->Text = L"Cancel";
            this->buttonCancel->UseVisualStyleBackColor = true;
            // 
            // listView1
            // 
            this->listView1->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Bottom | System::Windows::Forms::AnchorStyles::Left) 
                | System::Windows::Forms::AnchorStyles::Right));
            this->listView1->Columns->AddRange(gcnew cli::array< System::Windows::Forms::ColumnHeader^  >(2) {this->columnHeader1, this->columnHeader2});
            this->listView1->FullRowSelect = true;
            this->listView1->HeaderStyle = System::Windows::Forms::ColumnHeaderStyle::Nonclickable;
            this->listView1->HideSelection = false;
            this->listView1->Location = System::Drawing::Point(15, 139);
            this->listView1->MultiSelect = false;
            this->listView1->Name = L"listView1";
            this->listView1->ShowGroups = false;
            this->listView1->Size = System::Drawing::Size(457, 104);
            this->listView1->TabIndex = 1;
            this->listView1->UseCompatibleStateImageBehavior = false;
            this->listView1->View = System::Windows::Forms::View::Details;
            this->listView1->SelectedIndexChanged += gcnew System::EventHandler(this, &HistoryPrompt::listView1_SelectedIndexChanged);
            // 
            // columnHeader1
            // 
            this->columnHeader1->Text = L"Solution";
            this->columnHeader1->Width = 86;
            // 
            // columnHeader2
            // 
            this->columnHeader2->Text = L"Local history location";
            this->columnHeader2->Width = 359;
            // 
            // label2
            // 
            this->label2->Anchor = static_cast<System::Windows::Forms::AnchorStyles>(((System::Windows::Forms::AnchorStyles::Top | System::Windows::Forms::AnchorStyles::Left) 
                | System::Windows::Forms::AnchorStyles::Right));
            this->label2->Location = System::Drawing::Point(12, 94);
            this->label2->Name = L"label2";
            this->label2->Size = System::Drawing::Size(460, 33);
            this->label2->TabIndex = 5;
            this->label2->Text = L"Warning: unused local histories will remain on disk. Delete them manually if you " 
                L"don\'t plan on using them later.";
            // 
            // HistoryPrompt
            // 
            this->AcceptButton = this->buttonOK;
            this->AutoScaleDimensions = System::Drawing::SizeF(6, 13);
            this->AutoScaleMode = System::Windows::Forms::AutoScaleMode::Font;
            this->CancelButton = this->buttonCancel;
            this->ClientSize = System::Drawing::Size(484, 284);
            this->Controls->Add(this->label2);
            this->Controls->Add(this->listView1);
            this->Controls->Add(this->buttonCancel);
            this->Controls->Add(this->buttonOK);
            this->Controls->Add(this->label1);
            this->MaximizeBox = false;
            this->MinimizeBox = false;
            this->MinimumSize = System::Drawing::Size(188, 28);
            this->Name = L"HistoryPrompt";
            this->ShowInTaskbar = false;
            this->Text = L"Visual Local History 2005";
            this->TopMost = true;
            this->ResumeLayout(false);

        }
#pragma endregion
private: System::Void listView1_SelectedIndexChanged(System::Object^  sender, System::EventArgs^  e) {
            buttonOK->Enabled = (listView1->SelectedItems->Count > 0);
         }
};
}
